﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NetBase;
using System.Windows.Media;
using System.Drawing;

namespace NetBase.View
{
    [TestClass]
    public class SqImgLayerTest
    {
        [TestMethod]
        public void ShowWindowTest()
        {
            SqImgLayer layer = SqImgLayer.GetLayer();
            SqImgLayerWindow window = new SqImgLayerWindow(layer);
            window.ShowDialog();
        }

        [TestMethod]
        public void TestColorAdd()
        {
            System.Windows.Media.Color c1 = System.Windows.Media.Colors.Navy;
            System.Windows.Media.Color c2 = System.Windows.Media.Colors.DarkBlue;
            System.Windows.Media.Color c11 = System.Windows.Media.Colors.Aquamarine;
            System.Windows.Media.Color c22 = System.Windows.Media.Colors.AntiqueWhite;
            var c3 = c1 + c2 + c11 + c22;
            var c4 = c3 * 0.25f;
            var c5 = c2 - c22;

            //Assert.AreEqual(c3.A, c1.A + c2.A);
            //Assert.AreEqual(c3.R, c1.R + c2.R);
            //Assert.AreEqual(c3.G, c1.G + c2.G);
            //Assert.AreEqual(c3.B, c1.B + c2.B);
        }
    }
}
